<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CAD_Doc: googletest-json-output-unittest.GTestJsonOutputUnitTest Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">CAD_Doc<span id="projectnumber">&#160;1.0</span>
   </div>
   <div id="projectbrief">cad synopsis</div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('classgoogletest-json-output-unittest_1_1_g_test_json_output_unit_test.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classgoogletest-json-output-unittest_1_1_g_test_json_output_unit_test-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">googletest-json-output-unittest.GTestJsonOutputUnitTest Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for googletest-json-output-unittest.GTestJsonOutputUnitTest:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classgoogletest-json-output-unittest_1_1_g_test_json_output_unit_test.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3e5fb5fa44eb0a2ce40855923638278d" id="r_a3e5fb5fa44eb0a2ce40855923638278d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3e5fb5fa44eb0a2ce40855923638278d">testNonEmptyJsonOutput</a> (self)</td></tr>
<tr class="separator:a3e5fb5fa44eb0a2ce40855923638278d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e25f47ebdb7d5038e1c78b063190895" id="r_a2e25f47ebdb7d5038e1c78b063190895"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2e25f47ebdb7d5038e1c78b063190895">testNoTestJsonOutput</a> (self)</td></tr>
<tr class="separator:a2e25f47ebdb7d5038e1c78b063190895"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad6e62035c0587143b6eb9e2732de826" id="r_aad6e62035c0587143b6eb9e2732de826"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aad6e62035c0587143b6eb9e2732de826">testTimestampValue</a> (self)</td></tr>
<tr class="separator:aad6e62035c0587143b6eb9e2732de826"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8bb1c4238ae8c91bddcb6439365021c" id="r_ac8bb1c4238ae8c91bddcb6439365021c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac8bb1c4238ae8c91bddcb6439365021c">testDefaultOutputFile</a> (self)</td></tr>
<tr class="separator:ac8bb1c4238ae8c91bddcb6439365021c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6b85b6ae52b33d6b18b538aeceb875a" id="r_ad6b85b6ae52b33d6b18b538aeceb875a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad6b85b6ae52b33d6b18b538aeceb875a">testSuppressedJsonOutput</a> (self)</td></tr>
<tr class="separator:ad6b85b6ae52b33d6b18b538aeceb875a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f34e4004fce464df181d33f5a0b95bb" id="r_a7f34e4004fce464df181d33f5a0b95bb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7f34e4004fce464df181d33f5a0b95bb">testFilteredTestJsonOutput</a> (self)</td></tr>
<tr class="separator:a7f34e4004fce464df181d33f5a0b95bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a7349000d4345f75404b6bf1334914741" id="r_a7349000d4345f75404b6bf1334914741"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7349000d4345f75404b6bf1334914741">_GetJsonOutput</a> (self, gtest_prog_name, extra_args, expected_exit_code)</td></tr>
<tr class="separator:a7349000d4345f75404b6bf1334914741"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac12d355fb3f8d838d13257892da3797e" id="r_ac12d355fb3f8d838d13257892da3797e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac12d355fb3f8d838d13257892da3797e">_TestJsonOutput</a> (self, gtest_prog_name, expected, expected_exit_code, extra_args=None)</td></tr>
<tr class="separator:ac12d355fb3f8d838d13257892da3797e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><pre class="fragment">Unit test for Google Test's JSON output functionality.
</pre> </div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a7349000d4345f75404b6bf1334914741" name="a7349000d4345f75404b6bf1334914741"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7349000d4345f75404b6bf1334914741">&#9670;&#160;</a></span>_GetJsonOutput()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">googletest-json-output-unittest.GTestJsonOutputUnitTest._GetJsonOutput </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>gtest_prog_name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>extra_args</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>expected_exit_code</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel protected">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<pre class="fragment">Returns the JSON output generated by running the program gtest_prog_name.

Furthermore, the program's exit code must be expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  extra_args: extra arguments to binary invocation.
  expected_exit_code: program's exit code.
</pre> 
</div>
</div>
<a id="ac12d355fb3f8d838d13257892da3797e" name="ac12d355fb3f8d838d13257892da3797e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac12d355fb3f8d838d13257892da3797e">&#9670;&#160;</a></span>_TestJsonOutput()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">googletest-json-output-unittest.GTestJsonOutputUnitTest._TestJsonOutput </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>gtest_prog_name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>expected</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>expected_exit_code</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>extra_args</em></span><span class="paramdefsep"> = </span><span class="paramdefval">None</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel protected">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<pre class="fragment">Checks the JSON output generated by the Google Test binary.

Asserts that the JSON document generated by running the program
gtest_prog_name matches expected_json, a string containing another
JSON document.  Furthermore, the program's exit code must be
expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  expected: expected output.
  expected_exit_code: program's exit code.
  extra_args: extra arguments to binary invocation.
</pre> 
</div>
</div>
<a id="ac8bb1c4238ae8c91bddcb6439365021c" name="ac8bb1c4238ae8c91bddcb6439365021c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8bb1c4238ae8c91bddcb6439365021c">&#9670;&#160;</a></span>testDefaultOutputFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">googletest-json-output-unittest.GTestJsonOutputUnitTest.testDefaultOutputFile </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Verifies the default output file name.

Confirms that Google Test produces an JSON output file with the expected
default name if no name is explicitly specified.
</pre> 
</div>
</div>
<a id="a7f34e4004fce464df181d33f5a0b95bb" name="a7f34e4004fce464df181d33f5a0b95bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f34e4004fce464df181d33f5a0b95bb">&#9670;&#160;</a></span>testFilteredTestJsonOutput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">googletest-json-output-unittest.GTestJsonOutputUnitTest.testFilteredTestJsonOutput </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Verifies JSON output when a filter is applied.

Runs a test program that executes only some tests and verifies that
non-selected tests do not show up in the JSON output.
</pre> 
</div>
</div>
<a id="a3e5fb5fa44eb0a2ce40855923638278d" name="a3e5fb5fa44eb0a2ce40855923638278d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e5fb5fa44eb0a2ce40855923638278d">&#9670;&#160;</a></span>testNonEmptyJsonOutput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">googletest-json-output-unittest.GTestJsonOutputUnitTest.testNonEmptyJsonOutput </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Verifies JSON output for a Google Test binary with non-empty output.

Runs a test program that generates a non-empty JSON output, and
tests that the JSON output is expected.
</pre> 
</div>
</div>
<a id="a2e25f47ebdb7d5038e1c78b063190895" name="a2e25f47ebdb7d5038e1c78b063190895"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e25f47ebdb7d5038e1c78b063190895">&#9670;&#160;</a></span>testNoTestJsonOutput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">googletest-json-output-unittest.GTestJsonOutputUnitTest.testNoTestJsonOutput </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Verifies JSON output for a Google Test binary without actual tests.

Runs a test program that generates an JSON output for a binary with no
tests, and tests that the JSON output is expected.
</pre> 
</div>
</div>
<a id="ad6b85b6ae52b33d6b18b538aeceb875a" name="ad6b85b6ae52b33d6b18b538aeceb875a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6b85b6ae52b33d6b18b538aeceb875a">&#9670;&#160;</a></span>testSuppressedJsonOutput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">googletest-json-output-unittest.GTestJsonOutputUnitTest.testSuppressedJsonOutput </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Verifies that no JSON output is generated.

Tests that no JSON file is generated if the default JSON listener is
shut down before RUN_ALL_TESTS is invoked.
</pre> 
</div>
</div>
<a id="aad6e62035c0587143b6eb9e2732de826" name="aad6e62035c0587143b6eb9e2732de826"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad6e62035c0587143b6eb9e2732de826">&#9670;&#160;</a></span>testTimestampValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">googletest-json-output-unittest.GTestJsonOutputUnitTest.testTimestampValue </td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>self</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Checks whether the timestamp attribute in the JSON output is valid.

Runs a test program that generates an empty JSON output, and checks if
the timestamp attribute in the testsuites tag is valid.
</pre> 
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Build/_deps/googletest-src/googletest/test/<b>googletest-json-output-unittest.py</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>googletest-json-output-unittest</b></li><li class="navelem"><a class="el" href="classgoogletest-json-output-unittest_1_1_g_test_json_output_unit_test.html">GTestJsonOutputUnitTest</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
  </ul>
</div>
</body>
</html>
